package main

import (
    "fmt"
)

var ch1 = make(chan bool, 1)
var ch2 = make(chan bool, 1)
var ch3 = make(chan bool, 1)
var k int =  0

func gor1() {
    i := 0
    for {
        i++
        <- ch1
        fmt.Printf("%d ", i)
        ch2 <- true
    }
}
func gor2() {
    i := 0
    for i = 'a'; i <= 'z'; i++ {
        <- ch2
        fmt.Printf("%c ", i)
        ch1 <- true
    }
    k = 1
    ch3 <- true
}
func main() {
    ch1 <- true
    go gor1()
    go gor2()
    <- ch3
}
